<?php
namespace User\Controller;
use Think\Controller;
   
   /**
    * 推广模块不检查授权
    */
   class ApiController extends Controller {
     
     public function  index()
     {
        $this->display();
     }
    
     //获取随机文章
     public function shuiji()
     {
        $data=D("NewsView")->order("rand()")->find();
        $url=array(
            'url'=>show_url2($data)
            );
        $this->ajaxReturn($url);
     }
     
     //获取提现列表
     public function Sharetofriend()
     {
        $this->display();
     }
     
     //获取正在提现用户
     public function code()
     {
        $this->display();
     }

     //uid
     public  function uid()
     {
        $uid = de_crypt(I('get.code'));
        echo $uid;

     } 

   }
?>